import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

import router from './router.js'
import app from './App.vue'

import resource from 'vue-resource'
Vue.use(resource)

Vue.http.options.root = 'http://vue.studyit.io'

import moment from 'moment'
Vue.filter('datafilter', function(dataStr, params = 'YYYY-MM-DD hh:mm:ss'){
  return moment(dataStr).format(params)
})

import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'

import MintUi from 'mint-ui'
Vue.use(MintUi)
import 'mint-ui/lib/style.css'

import VuePreview from 'vue-preview'
Vue.use(VuePreview)

var vm = new Vue({
  el:'#app',
  render: c => c(app),
  router
})